|
SET OBJECT SMOOTHING
This command will smooth the sharp edges of the mesh within an object by adjusting the normals data.
SET OBJECT SMOOTHING Object Number, Percentage
Object Number
Integer
The object number
Percentage
Float
A percentage value of zero will perform no smoothing and create a facet surface for each limb within the object. A percentage value of 100 will perform full smoothing, averaging all normals that share a vertex position and create a smoothing effect elimi
This command does not return a value.
A percentage value of zero will perform no smoothing and create a facet surface for each limb within the object. A percentage value of 100 will perform full smoothing, averaging all normals that share a vertex position and create a smoothing effect elimiating all edges. A value between these two limits will determine the degree beyond which an edge will be smoothed or left sharp.
sync on : sync rate 60 : hide mouse:cls 0:color backdrop 0
fog on:fog color 0:set ambient light 50
ObjectNumber=2:ImageNumber=2
wire=0:trans=0:cull=0:fliter=0:light=0:fog=0:ambient=0
set global object creation 0
rem Load asteroid model
set dir "models"
load object "ast4.x",ObjectNumber
set object specular ObjectNumber,0
rotate object ObjectNumber,270,0,0
set dir ".."
while mouseclick()<>2
SET OBJECT SMOOTHING ObjectNumber,100
if mouseclick()=1 then yrotate object ObjectNumber,wrapvalue(object angle y(ObjectNumber)+1)
sync
endwhile
while mouseclick()=1:endwhile
delete object ObjectNumber
end
BASIC3D Commands Menu
Index
|